package models;

import play.db.jpa.Model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Transient;
import java.util.HashSet;
import java.util.Set;

@Entity(name = "task")
public class Task extends Model {

    @Column(name = "description")
    public String description;

    @ManyToMany(mappedBy = "tasks")
    public Set<Profile> perfiles = new HashSet<Profile>();

    @Transient
    public static final String GESTION_EVENTO = "GESTION_EVENTO";
    @Transient
    public static final String GESTION_PONENCIAS = "GESTION_PONENCIAS";
    @Transient
    public static final String GESTION_INSCRIPCIONES = "GESTION_INSCRIPCIONES";
    @Transient
    public static final String GESTION_ASISTENCIAS = "GESTION_ASISTENCIAS";
    @Transient
    public static final String EDITAR_PAGINA = "EDITAR_PAGINA";
    @Transient
    public static final String GESTION_AUDITORIOS= "GESTION_AUDITORIOS";

}
